package com.bdmc.device.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import com.bdmc.device.domain.DevGpsHistory;
import com.bdmc.device.domain.bo.DevGpsHistoryBo;
import com.bdmc.device.domain.vo.DevGpsHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * GPS设备历史数据Mapper接口
 *
 * @author bdmc
 * @date 2022-03-22
 */
public interface DevGpsHistoryMapper extends BaseMapperPlus<DevGpsHistory> {

    Page<DevGpsHistoryVo> mySelectPage(@Param("page") Page<DevGpsHistory> page, @Param("param") DevGpsHistoryBo bo);

    //@DS("slave")
    List<DevGpsHistoryVo> traceList(@Param("param")  DevGpsHistoryBo bo);

    //@DS("slave")
    Map<String,Object> carMileage(@Param("param")  DevGpsHistoryBo bo);

    //@DS("slave")
    Integer insertData(@Param("param")  DevGpsHistoryBo bo);
}
